home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
pxbud.zip
/
PDXTBLGE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-17
|
2KB
|
53 lines
/*┌───────────────────────────────────────────────────────────────────────┐
│ │
│ Module: PDXTBLGE.H │
│ Author: Rick Kligman │
│ Purpose: Header file for the Paradox Table Generic Class │
│ │
│ Last Modified: 05-17-91 00:34am │
│ │
│ Copyright 1991 Rick Kligman │
│ This code may be freely used and distributed in commercial apps │
│ provided some mention of PXBuddy++ is made in the documentation. │
│ │
│ Version 1.00 │
└───────────────────────────────────────────────────────────────────────┘ */
#ifndef PDXTBLGE_H
#define PDXTBLGE_H
#include "pdxtbl.h"
// ╓─────────────────────────────────────────────────────────────────╖
// ║ Derived class for Generic Tables ║
// ╚═════════════════════════════════════════════════════════════════╝
class GenericTbl : public pxtable
{
int search_fld(FIELDHANDLE, int);
void date_decode(char *, long);
int date_encode(RECORDHANDLE, FIELDHANDLE, char *);
public:
GenericTbl();
~GenericTbl();
int fhret(char *fld, FIELDHANDLE &fh)
{ return ( PXFldHandle(th, fld, &fh) ); }
int search(char *fld, char *srchvar, int mode = SEARCHFIRST);
int getfld(FIELDHANDLE fh, int, char *field);
int getfld(FIELDHANDLE fh, short &field);
int getfld(FIELDHANDLE fh, double &field);
int getfld(FIELDHANDLE fh, char *field);
int putfld(FIELDHANDLE fh, char *field);
int putfld(FIELDHANDLE fh, short &field);
int putfld(FIELDHANDLE fh, double &field);
int putfld(FIELDHANDLE fh, char *, int);
};
#endif